<template>
  <div class="myindex">
    <div class="header">
      <div class="h_lef">
        <div class="f_top">
          <el-carousel :interval="2000" ref="carouselRef">
            <el-carousel-item
              v-for="item in recommend"
              :key="item.source_id"
              @click="particulars(item.source_id, item.source)"
            >
              <!-- <h3 class="small justify-center" text="2xl">{{ item }}</h3> -->
              <img :src="item.image" alt="" />
              <div class="f_yizi">
                <div class="tex">
                  {{ item.title }}
                </div>
              </div>
            </el-carousel-item>
          </el-carousel>
        </div>

        <div class="f_bom">
          <!-- <div class="b_1">支部风采</div> -->
          <img class="b_1" @click="zbfc" :src="pc_elegant" alt="" />
          <img class="b_2" @click="theory" :src="pc_theory" alt="" />
          <!-- <div class="b_2" @click="theory">理论之星</div> -->
        </div>
      </div>
      <div class="h_rig">
        <div class="g_top">
          <div class="title">
            <div class="t_lef">
              <el-icon color="#E02020">
                <Tickets />
              </el-icon>
              <div class="tex">党员充电站</div>
            </div>
            <div class="t_rig" @click="article">
              <div class="tex">更多</div>
              <el-icon color="#1A1A1A">
                <DArrowRight />
              </el-icon>
            </div>
          </div>
          <div class="g_bom">
            <div
              class="g_item"
              v-for="(item, i) in network"
              :key="item.id"
              @click="articles(item.id)"
            >
              <div class="item_lef">TOP{{ i + 1 }}</div>
              <div class="item_tit">
                {{ item.title }}
              </div>
              <div class="item_rig">浏览：{{ item.views }}</div>
            </div>
          </div>
        </div>
        <div class="g_bomm">
          <!-- <img src="@/image/01.png" alt="" style="width: 100%; height: 100%" />
          <img src="@/image/title.png" alt="" class="bom_img" />
          <div class="txt" >学习矩阵</div> -->
          <img class="g_bomm" :src="pc_matrix" alt="" @click="study" />
        </div>
      </div>
    </div>
    <!-- 视频推荐 -->
    <div class="skm">
      <div class="skm_top">
        <div class="p_lef">
          <el-icon color=" #E02020">
            <VideoPlay />
          </el-icon>
          <div class="tet">视频集锦</div>
        </div>
        <div class="p_rig" style="cursor: pointer" @click="frequency">
          <div class="tet">更多</div>
          <el-icon color="#1A1A1A">
            <DArrowRight />
          </el-icon>
        </div>
      </div>
      <div class="mybr"></div>
      <div>
        <div class="skm_bom">
          <div class="m_img">
            <el-carousel
              :interval="2000"
              type="card"
              autoplay
              ref="carouselRef1"
            >
              <el-carousel-item v-for="(item, i) in video" :key="i">
                <img :src="item.cover" alt="" @click="myvid(item)" />
                <div class="skm_tit">{{ item.title }}</div>
                <!-- <div class="cc"></div> -->
              </el-carousel-item>
            </el-carousel>
          </div>
        </div>
      </div>
    </div>
    <!-- 一站到底 -->
    <div class="footer">
      <div class="f_top">
        <div class="p_lef">
          <el-icon color=" #E02020">
            <PictureRounded />
          </el-icon>
          <div class="tet">一站到底</div>
        </div>
      </div>
      <div class="mybr"></div>
      <div class="f_nav">
        <div class="v_lef">
          <div
            style="cursor: pointer"
            v-for="(item, i) in list"
            :key="i"
            @click="citem(i)"
            :class="myitem == i ? 'v_item1' : 'v_item'"
          >
            {{ item.name }}
          </div>
        </div>
        <div class="p_rig">
          <div
            class="tet"
            style="cursor: pointer"
            v-if="myitem == 0"
            @click="exam"
          >
            更多
          </div>
          <div
            class="tet"
            style="cursor: pointer"
            v-if="myitem == 2"
            @click="exam1"
          >
            我的测评记录
          </div>
          <el-icon @click="exam" color="#1A1A1A" v-if="myitem == 0">
            <DArrowRight />
          </el-icon>
          <el-icon @click="exam1" color="#1A1A1A" v-if="myitem == 2">
            <DArrowRight />
          </el-icon>
        </div>
      </div>
      <div class="f_bom" v-if="myitem == 0 && total > 0">
        <div class="m_item" v-for="(item, i) in answer" :key="item.user_id">
          <div class="m_img">
            <img
              :src="item.avatar"
              alt=""
              class="img1"
              style="cursor: pointer"
              @click="ans(item.user_id)"
            />
            <img v-if="i == 0" src="@/image/image 1.png" alt="" class="img2" />
            <img v-if="i == 1" src="@/image/image.png" alt="" class="img2" />
            <img v-if="i == 2" src="@/image/image 2.png" alt="" class="img2" />
          </div>

          <div class="m_title">
            <div class="tet1">TOP {{ i + 1 }}</div>
            <div class="tet2">{{ item.nickname }}</div>
            <div class="tet3">积分：{{ item.point }}</div>
            <div class="tet4">{{ item.dept }}</div>
          </div>
        </div>
      </div>
      <div class="f_bom" v-if="myitem == 0 && total == 0">
        <div class="zwwww">
          <img src="@/image/容器.png" alt="" />
        </div>
      </div>
      <div class="f_bom1" v-if="myitem == 1">
        <div class="bom1_lef">
          <div v-for="item in pract">{{ item }}</div>
        </div>
        <div class="bom1_eig" v-if="practiceList.title">
          <!-- <img src="@/image/ju.png" alt="" />
          <div class="bom1_tet">准备好了</div> -->
          <div class="title">{{ practiceList.title }}</div>
          <div
            class="bom1_btn"
            style="cursor: pointer"
            @click="open(practiceList.practice_id)"
          >
            开始练习
          </div>
        </div>
      </div>
      <div class="f_bom1" v-if="myitem == 2">
        <div class="bom1_lef">
          <div v-for="item in hqa">{{ item }}</div>
        </div>
        <div class="bom1_eig" v-if="assessList.phase">
          <div class="g_1">第{{ assessList.phase }}期</div>
          <div class="g_2">测评时间：{{ start }} 至 {{ end }}</div>
          <div class="g_3">{{ assessList.title }}</div>
          <div
            class="bom1_btn"
            style="cursor: pointer"
            @click="open1(assessList.assess_id)"
          >
            开始测评
          </div>
          <div class="g_4">剩余测评次数：{{ assessList.chance }}</div>
        </div>
      </div>
    </div>
    <div class="cc"></div>
    <div class="mask" v-if="msk">
      <div class="mmm">
        <div class="cuo" style="cursor: pointer" @click="cuo">x</div>
        <video :src="vido" controls autoplay loop class="vido">
          您的浏览器不支持视频标签。
        </video>
      </div>
    </div>
  </div>
  <!-- <div class="zhezhao" > -->
  <div class="zhe" v-if="nizz">
    <div class="zhao">
      <div v-for="item in detailTan" :key="item.id">
        <div class="biao" v-if="detailTan[0].id == item.id">
          <h3 class="title_tit">党纪警示钟</h3>
          <div style="cursor: pointer" @click="cd(item.id)">X</div>
        </div>
        <!-- <div v-show="xsindex == index"> -->
        <div v-if="detailTan[0].id == item.id">
          <div class="nei_title">
            <div class="text_title">
              <h4>{{ item.title }}</h4>
              <p>{{ item.create_time }}</p>
            </div>
            <div class="image_home" v-if="item.images.length >= 1">
              <div
                v-for="(ite, ind) in item.images"
                :key="ind"
                v-if="item.images.length >= 1"
              >
                <img :src="ite" alt="" />
              </div>
              <div
                v-for="(ite, indx) in item.video"
                :key="indx"
                v-if="item.video.length >= 1"
              >
                <video :src="ite" controls autoplay loop class="videos" />
              </div>
              <!-- <div class="cler"></div> -->
            </div>
            <p class="p1" v-html="item.content"></p>
          </div>
          <div style="display: flex; justify-content: end">
            <el-button
              type="primary"
              class="butt"
              style="cursor: pointer"
              @click="yixuexi(item.id)"
            >
              已学习
            </el-button>
          </div>
        </div>
      </div>
    </div>
  </div>
  <!-- </div> -->
</template>

<script setup lang="ts">
import { ref, onMounted, onBeforeUnmount } from 'vue'
import { useRouter, useRoute } from 'vue-router'
import { getIndexApi, getanswerApi, getpointApi } from '@/api/user'
import { bell, bell_read, rotation, practice, assess } from '@/api/team'
import { dataTool } from 'echarts'
import { ElMessage } from 'element-plus'

const carouselRef: any = ref(null)
const carouselRef1: any = ref(null)
const intervalId = ref<ReturnType<typeof setInterval> | null>(null)

const autoplayInterval = 3000 // 3 秒自动轮播一次

onMounted(() => {
  if (carouselRef.value) {
    // 假设 Carousel 组件有一个 next() 方法来切换到下一个项目
    intervalId.value = setInterval(() => {
      carouselRef.value.next()
      carouselRef1.value.next()
    }, autoplayInterval)
  }
})

onBeforeUnmount(() => {
  if (intervalId.value) {
    clearInterval(intervalId.value)
  }
})
// 练习题
let practiceList = ref({
  phase: '',
  practice_id: '',
  rule: '',
  title: ''
})
const pract = ref()
const hqpractice = () => {
  practice().then(res => {
    practiceList.value = res.data.data
    pract.value = res.data.data.rule.split('\n')
    console.log(practiceList.value, 'ssss')
  })
}
hqpractice()
const open = (id: any) => {
  Router.push({ path: '/home/openexam', query: { id } })
}
const zbfc = () => {
  Router.push('/home/team-t')
}
let assessList = ref({
  phase: '',
  assess_id: '',
  rule: '',
  title: '',
  chance: '', //机会
  end_time: '',
  score: '',
  start_time: ''
})
const hqa = ref()
const end = ref()
const start = ref()
const hqassess = () => {
  assess().then(res => {
    console.log(res.data.data, 'aaa')
    assessList.value = res.data.data
    hqa.value = res.data.data.rule.split('\n')
    end.value = res.data.data.end_time.split(' ')[0]
    start.value = res.data.data.start_time.split(' ')[0]
  })
}
hqassess()
const open1 = (id: any) => {
  Router.push({ path: '/home/openceshi', query: { id } })
}
const exam1 = () => {
  Router.push('/home/exam/exam/jilu')
}
// 结束
let pdyd = ref(false)
let detailTan = ref()
let ablockdata: any = ref({
  page: 1,
  page_size: 5,
  status: 1
})
const nizz = ref(false)
const ablock = async () => {
  await bell(ablockdata.value).then(res => {
    const detTan = res.data.data.data
    detailTan.value = detTan.filter(
      (item: any) => !xsindex.value.includes(item.id)
    )
    console.log(detailTan.value, 'jingshizhong')
    if (detailTan.value.length == 0) {
      nizz.value = false
    } else {
      nizz.value = true
    }
  })
}
const yixuexi = (id: any) => {
  console.log(id, 'id')
  bell_read({ id: id }).then(res => {
    console.log(res, '已学习')
    ablock()
  })
}
ablock()
let xsindex: any = ref([])
const cd = (i: any) => {
  xsindex.value.push(i)
  console.log(xsindex, 'iii')
  // event.stopPropagation(); // 阻止事件冒泡
  ablock()
}
const hodd = () => {}
let network = ref()
let recommend = ref()
let video = ref()
let data = ref()
const pc_elegant = ref()
const pc_matrix = ref()
const pc_theory = ref()
const msk = ref(false)
const vido = ref()
getIndexApi().then(res => {
  pc_elegant.value = res.data.data.pc_elegant
  pc_matrix.value = res.data.data.pc_matrix
  pc_theory.value = res.data.data.pc_theory
  data.value = res.data.data
  network.value = res.data.data.network
  recommend.value = res.data.data.recommend
  video.value = res.data.data.video
  // console.log(network.value)
  console.log(data.value, '数据')
})
const answer = ref()
const total = ref(0)
getanswerApi().then(res => {
  answer.value = res.data.data.data
  total.value = res.data.data.total

  console.log('排行榜', res)
})
const ans = (item: any) => {
  Router.push({ path: '/home/home/team-d/onecen', query: { item } })
}
const cuo = () => {
  clearTimeout(timeoutId.value)
  msk.value = false
}
const second = ref()
const timeoutId: any = ref()
const point: any = ref({
  source: 4,
  source_id: 1
})
const myvid = (url: any) => {
  console.log(url, '视频')

  vido.value = url.url
  msk.value = true
  second.value = url.seconds
  if (url.point_status == 0) {
    timeoutId.value = setTimeout(() => {
      point.value.source_id = url.id
      getpointApi(point.value).then(res => {
        console.log('积分', res)
        if (res.data.code == 1) {
          ElMessage({
            message: '获得' + res.data.data.point + '积分',
            type: 'success'
          })
        }
      })
    }, second.value * 1000)
  }
}
let Router = useRouter()
// 跳转
let type: any = ref({
  type: 2
})
function study() {
  rotation(type.value).then(res => {
    console.log(res.data.data, 'img')
    // lunbo.value = res.data.data
  })
  Router.push('/home/study')
}
function particulars(id: any, source: any) {
  // Router.push({ path: '/home/particulars', query: { id } })
  if (source == 1) {
    window.open(`/pc/home/particulars?id=${id}`, '_blank')
  } else {
    window.open(`/pc/home/team-t/detail?e=${id}`, '_blank')
  }
}
function exam() {
  Router.push('/home/exam')
}
function article() {
  Router.push('/home/article')
}
function articles(id: any) {
  // Router.push({ path: '/home/articles', query: { id } })
  window.open(`/pc/home/articles?id=${id}`, '_blank')
}
function frequency() {
  Router.push('/home/frequency')
}
function theory() {
  // Router.push('/theory')
  window.open('/pc/theory', '_blank')
}

const list = ref([
  { name: '答题积分排行' },
  { name: '党建知识练习' },
  { name: '党建知识测评' }
])
let myitem = ref(0)
const citem = (ev: number) => {
  myitem.value = ev
  console.log(ev, myitem.value)
}
</script>

<style lang="scss" scoped>
.zwwww {
  width: 100%;
  text-align: center;
}
// @media (min-width: 2160px) {
//   .myindex {
//     width: 100%;
//     margin: 16px auto;
//     height: 1200px;
//   }
// }

// @media (max-width: 2159px) {
.myindex {
  width: 1080px;
  margin: 16px auto;
}

// }

.mybr {
  width: 100%;
  border-bottom: 1px solid #e5e5e5;
}

.mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;

  .mmm {
    position: relative;
    width: 968px;
    height: 544px;
    margin: 0 auto;
    margin-top: 100px;

    .vido {
      width: 968px;
      height: 544px;
    }

    .cuo {
      cursor: pointer;
      position: absolute;
      right: 10px;
      font-size: 30px;
      color: #fff;
      z-index: 9999;
    }
  }
}

.cc {
  height: 20px;
}

.myindex {
  background-color: #f5f5f5;

  // 一站到底
  .footer {
    width: 100%;
    height: 445px;
    border-radius: 8px;
    margin-top: 16px;
    background: #ffffff;

    .f_top {
      display: flex;
      height: 54px;
      line-height: 54px;
      border-bottom: 1px solid #fff;
      justify-content: space-between;

      .p_lef {
        display: flex;

        .el-icon {
          font-size: 20px;
          margin: 18px 3px 0 17px;
        }

        .tet {
          font-size: 18px;
          font-weight: normal;
          color: #1a1a1a;
        }
      }
    }

    .f_nav {
      display: flex;
      justify-content: space-between;
      margin-top: 16px;

      .v_lef {
        display: flex;

        .v_item {
          cursor: pointer;
          width: 128px;
          height: 32px;
          text-align: center;
          line-height: 32px;
          font-size: 16px;
          font-weight: normal;
          color: #999999;
        }

        .v_item1 {
          cursor: pointer;
          width: 128px;
          height: 32px;
          text-align: center;
          line-height: 32px;
          border-bottom: 1px solid #e02020;
          font-size: 16px;
          font-weight: 600;
          color: #e02020;
        }
      }

      .p_rig {
        display: flex;
        cursor: pointer;
        justify-content: center;
        align-items: center;

        .tet {
          cursor: pointer;
          margin-top: 20px;
          font-size: 14px;
          font-weight: normal;
          color: #1a1a1a;
        }

        .el-icon {
          font-size: 15px;
          margin: 20px 20px 0 10px;
        }
      }
    }

    .f_bom {
      display: flex;
      flex-wrap: wrap;

      .m_item {
        display: flex;
        margin: 48px 0 0 14px;

        .m_img {
          position: relative;

          .img1 {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            // background-color: blue;
          }

          .img2 {
            position: absolute;
            width: 40px;
            height: 40px;
            bottom: 10px;
            left: 37px;
          }
        }

        .m_title {
          margin-left: 5px;
          width: 106px;

          .tet1 {
            font-size: 14px;
            font-weight: normal;
            color: #1a1a1a;
          }

          .tet2 {
            padding: 5px 0;
            font-size: 18px;
            font-weight: 600;
            color: #1a1a1a;
          }

          .tet3 {
            padding: 5px 0;
            font-size: 14px;
            font-weight: 600;
            color: #e02020;
          }

          .tet4 {
            font-size: 14px;
            font-weight: normal;
            color: #1a1a1a;
          }
        }
      }
    }

    .f_bom1 {
      display: flex;

      .bom1_lef {
        margin-top: 59px;
        margin-left: 102px;
        width: 455px;
        height: 187px;
        overflow: auto;
        font-size: 14px;
        font-weight: normal;
        line-height: 30px;
        color: #1a1a1a;
        background: #fff4f4;
        padding: 25px 25px 0 25px;
      }

      .bom1_lef::-webkit-scrollbar {
        display: none;
      }

      .bom1_eig {
        display: flex;
        margin-top: 34px;
        flex-direction: column;
        align-items: center;
        margin-left: 120px;

        .title {
          margin: 40px 0 100px;
          font-size: 24px;
          font-weight: 600;
          color: #1a1a1a;
        }

        .g_1 {
          font-size: 24px;
          font-weight: 500;
          line-height: 24px;
          /* 党建主色 */
          color: #e02020;
        }

        .g_2 {
          margin: 20px 0;
          font-size: 16px;
          color: #1a1a1a;
        }

        .g_3 {
          font-size: 24px;
          color: #999;
          margin-bottom: 61px;
        }

        .g_4 {
          margin-top: 10px;
          font-size: 14px;
          color: #e02020;
        }

        img {
          width: 100px;
          height: 100px;
        }

        .bom1_tet {
          font-size: 24px;
          color: #999999;
          margin-bottom: 40px;
        }

        .bom1_btn {
          width: 240px;
          height: 60px;
          line-height: 60px;
          border-radius: 10px;
          background: #e02020;
          font-size: 24px;
          text-align: center;
          color: #ffffff;
        }
      }
    }
  }

  // 视频推荐
  .skm {
    margin-top: 16px;
    width: 100%;
    height: 400px;
    border-radius: 8px;
    background: #ffffff;

    .skm_top {
      display: flex;
      height: 54px;
      line-height: 54px;
      border-bottom: 1px solid #fff;
      justify-content: space-between;

      .p_lef {
        display: flex;

        .el-icon {
          font-size: 20px;
          margin: 18px 3px 0 17px;
        }

        .tet {
          font-size: 18px;
          font-weight: normal;
          color: #1a1a1a;
        }
      }

      .p_rig {
        display: flex;

        .tet {
          font-size: 14px;
          font-weight: normal;
          color: #1a1a1a;
        }

        .el-icon {
          font-size: 15px;
          margin: 20px 20px 0 10px;
        }
      }
    }

    .skm_bom {
      ::v-deep .el-carousel__mask {
        background-color: rgba(0, 0, 0, 0.9);
        width: 400px;
        height: 250px;
        border-radius: 8px;
        margin-left: 53px;
      }

      .m_img {
        width: 1016px;
        height: 300px;
        border-radius: 8px;
        padding: 16px 0 0 16px;

        ::v-deep .el-carousel__container {
          // height: 400px;
          text-align: center;
        }

        img {
          width: 400px;
          height: 250px;
          border-radius: 8px;
          background-size: cover;
        }

        .el-carousel__indicator.is-active button {
          opacity: 0;
        }

        .skm_tit {
          padding-left: 16px;
          margin-top: 8px;
          font-size: 16px;
          font-weight: 600;
          color: #1a1a1a;
        }

        .cc {
          margin-left: 16px;
          margin-top: 8px;
          width: 100px;
          height: 1px;
          background-color: #e02020;
        }
      }
    }
  }

  // 第一部分
  .header {
    width: 100%;
    display: flex;
    background-color: #fff;

    .h_lef {
      position: relative;
      width: 516px;
      margin: 16px 16px 18px 0;

      .f_top {
        .el-carousel {
          width: 516px;
          border-radius: 8px;
          cursor: pointer;
          // height: 358px !important;
        }

        .el-carousel__item {
          border-radius: 8px;
        }

        ::v-deep .el-carousel__container {
          height: 358px !important;
          border-radius: 8px;
        }

        img {
          height: 100%;
          width: 100%;
          background: #000;
          object-fit: contain;
          // background-size: cover;
          // object-fit: cover;
        }

        ::v-deep .el-carousel__button {
          width: 5px;
          height: 5px;
          border-radius: 50px;
        }
      }

      .f_yizi {
        position: absolute;
        margin-top: -67px;
        width: 516px;
        height: 67px;
        opacity: 0.7;

        /* 纯黑 */
        background: #000000;

        .tex {
          font-size: 16px;
          padding-left: 9px;
          font-weight: 600;
          line-height: 24px;
          padding-top: 11px;
          color: #fff;
          overflow: hidden;
          text-overflow: ellipsis;
          width: 51ch;
        }
      }

      .f_bom {
        display: flex;
        justify-content: space-between;
        margin-top: 16px;

        .b_1 {
          cursor: pointer;
          width: 258px;
          height: 70px;
          border-radius: 8px;
          background-size: cover;
          margin-right: 19px;
        }

        .b_2 {
          cursor: pointer;
          width: 258px;
          height: 70px;
          border-radius: 8px;
          background-size: cover;
        }
      }
    }

    .h_rig {
      .g_top {
        padding: 0 8px;
        width: 516px;
        height: 253px;
        margin: 15px 0 18px 0;
        border-radius: 8px;

        .title {
          display: flex;
          justify-content: space-between;
          height: 54px;
          line-height: 54px;
          border-bottom: 1px solid #e5e5e5;

          .t_lef {
            display: flex;
            height: 54px;
            margin-left: 18px;

            // margin-top: 20px;
            .tex {
              font-size: 18px;
              font-weight: normal;
              color: #1a1a1a;
              margin-left: 5px;
            }

            .el-icon {
              margin-top: 20px;
              font-size: 15px;
            }
          }

          .t_rig {
            cursor: pointer;
            display: flex;
            height: 54px;
            margin-right: 13px;

            .tex {
              font-size: 14px;
              font-weight: normal;
              color: #1a1a1a;
              margin-right: 10px;
            }

            .el-icon {
              margin-top: 18px;
              font-size: 15px;
            }
          }
        }

        .g_bom {
          padding-left: 24px;
          padding-right: 16px;

          .g_item {
            cursor: pointer;
            display: flex;
            height: 40px;
            line-height: 40px;
            justify-content: space-between;
            background-color: #fff;

            .item_lef {
              font-size: 16px;
              font-weight: 600;
              color: #e02020;
            }

            .item_tit {
              font-size: 16px;
              font-weight: 600;
              color: #1a1a1a;
              overflow: hidden;
              white-space: nowrap;
              text-overflow: ellipsis;
              width: 33ch;
            }

            .item_rig {
              font-size: 12px;
              font-weight: normal;
              color: #767676;
            }
          }
        }
      }

      .g_bomm {
        cursor: pointer;
        width: 516px;
        height: 174px;
        border-radius: 8px;
      }
    }
  }
}

.zhezhao {
  width: 100%;
  height: 100vh;
}

.zhe {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  position: fixed;
  // opacity: 0.4 !important;
  top: 0;
  left: 0;
  z-index: 9999;

  .zhao {
    height: 642px;
    width: 608px;
    background: #fff;
    padding: 15px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -304px;
    margin-top: -321px;
    position: relative;
  }
}

.kong {
  width: 100%;
  height: 100%;
}

.image_home {
  margin: 25px 0;
  // float: left;
  width: 500px;
  // background: olivedrab;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;

  img {
    width: 248px;
    height: 160px;
    // margin-left: 10px;
    // float: left;
    margin-top: 10px;
  }

  video {
    width: 248px;
    height: 160px;
    // margin-left: 10px;
    margin-top: 10px;
    // float: left;
  }
}

.butt {
  width: 96px;
  height: 40px;
  font-size: 16px;
  background: #e02020;
  color: #fff;
  border: none;
  position: absolute;
  bottom: 40px;
  right: 40px;
}

.biao {
  display: flex;
  justify-content: space-between;
  padding: 0 40px;
}

.nei_title {
  height: 500px;
  overflow: auto;
  padding: 0 40px;
  margin-top: 32px;
  font-size: 18px;
}

.title_tit {
  font-size: 20px;
}

.text_title {
  display: flex;
  justify-content: space-between;

  h4 {
    font-size: 18px;
    line-height: 30px;
    width: 400px;
    // background: olive;
  }

  p {
    font-size: 12px;
    margin-top: 5px;
  }
}

.p1 {
  color: #999;
}

// .cler {
//   clear: both;
// }
</style>
